package io.adrainty.bolee.framework.commons.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

import java.util.ArrayList;
import java.util.List;

/**
 * @author AdRainty
 * @version V1.0.0
 * @since 2025/8/3 下午11:04
 */

@Data
@ConfigurationProperties(prefix = "itheima.framework.security")
@Configuration
public class SecurityConfigProperties {

    /**
     * 忽略的URL
     */
    private List<String> ignoreUrl = new ArrayList<>();

    private List<String> origins = new ArrayList<>();

    private String loginPage;

    /**
     * 访问令牌有效时间
     */
    private Integer accessTokenValiditySeconds = 3*24*3600;

    /**
     * 刷新令牌有效时间
     */
    private Integer refreshTokenValiditySeconds= 7*24*3600;

}
